package Vista;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.SwingUtilities;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

import Controlador.ControladorPlantilla;

/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class NewJDialogPlantilla extends javax.swing.JDialog {
	private JPanel jPanelPlantilla;
	private JButton jBtoAceptar;
	private JComboBox jCmbIngrediente;
	private JButton JBtoPlantillaBuscar;
	private JButton jBtoQuitarP;
	private JButton jBtoAgregarP;
	private JScrollPane jSpPlantilla;
	private JTable jTableIngrediente;
	private JButton jBtoRegistrar;
	private JTextField jTxtCantidad;
	private JLabel jLblCantidad;
	private JButton jBtoSalir;
	private JLabel jLblListadoIngredientes;
	private JLabel jLblIngrediente;
	private JTextField jTxtCodigoProducto;
	private JLabel jLblCodigoProducto;

	/**
	* Auto-generated main method to display this JDialog
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				JFrame frame = new JFrame();
				NewJDialogPlantilla inst = new NewJDialogPlantilla(frame, null);
				inst.setVisible(true);
			}
		});
	}
	
	public NewJDialogPlantilla(JFrame frm,
			ControladorPlantilla controladorPlantilla) {
		super(frm);
		initGUI();
	}


	private void initGUI() {
		try {
			{
				getContentPane().setLayout(null);
				this.setTitle("Plantilla Producto");
				this.setFont(new java.awt.Font("Comic Sans MS",3,14));
				{
					jPanelPlantilla = new JPanel();
					getContentPane().add(jPanelPlantilla);
					//jPanelPlantilla.setLayout(jPanelPlantillaLayout);
					jPanelPlantilla.setBounds(12, 30, 707, 400);
					jPanelPlantilla.setBorder(BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(0,0,0)));
					jPanelPlantilla.setLayout(null);
					jPanelPlantilla.setBackground(new java.awt.Color(237,206,69));
					{
						jLblCodigoProducto = new JLabel();
						jPanelPlantilla.add(jLblCodigoProducto);
						jLblCodigoProducto.setText("Codigo Producto");
						jLblCodigoProducto.setBounds(35, 42, 105, 21);
						jLblCodigoProducto.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtCodigoProducto = new JTextField();
						jPanelPlantilla.add(jTxtCodigoProducto);
						jTxtCodigoProducto.setBounds(174, 32, 136, 22);
						jTxtCodigoProducto.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jLblIngrediente = new JLabel();
						jPanelPlantilla.add(jLblIngrediente);
						jLblIngrediente.setText("Ingredientes");
						jLblIngrediente.setBounds(35, 102, 127, 21);
						jLblIngrediente.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jLblListadoIngredientes = new JLabel();
						jPanelPlantilla.add(jLblListadoIngredientes);
						jLblListadoIngredientes.setText("Listado de Ingredientes");
						jLblListadoIngredientes.setBounds(31, 148, 286, 21);
						jLblListadoIngredientes.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jSpPlantilla = new JScrollPane();
						jPanelPlantilla.add(jSpPlantilla);
						jSpPlantilla.setBounds(31, 190, 598, 73);
						jSpPlantilla.setFont(new java.awt.Font("Comic Sans MS",3,14));
						{
							TableModel jTableIngredienteModel = 
								new DefaultTableModel(
										new String[][] { { "One", "Two" }, { "Three", "Four" } },
										new String[] { "Column 1", "Column 2" });
							jTableIngrediente = new JTable();
							jSpPlantilla.setViewportView(jTableIngrediente);
							jTableIngrediente.setModel(jTableIngredienteModel);
							jTableIngrediente.setFont(new java.awt.Font("Comic Sans MS",3,14));
						}
					}
					{
						jBtoSalir = new JButton();
						jPanelPlantilla.add(jBtoSalir);
						jBtoSalir.setText("Salir");
						jBtoSalir.setBounds(604, 342, 83, 28);
						jBtoSalir.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoAceptar = new JButton();
						jPanelPlantilla.add(jBtoAceptar);
						jBtoAceptar.setText("Aceptar");
						jBtoAceptar.setBounds(477, 342, 109, 28);
						jBtoAceptar.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						ComboBoxModel jCmbIngredienteModel = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
						jCmbIngrediente = new JComboBox();
						jPanelPlantilla.add(jCmbIngrediente);
						jCmbIngrediente.setModel(jCmbIngredienteModel);
						jCmbIngrediente.setBounds(174, 102, 131, 22);
						jCmbIngrediente.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jLblCantidad = new JLabel();
						jPanelPlantilla.add(jLblCantidad);
						jLblCantidad.setText("Cantidad");
						jLblCantidad.setBounds(343, 106, 92, 15);
						jLblCantidad.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jTxtCantidad = new JTextField();
						jPanelPlantilla.add(jTxtCantidad);
						jTxtCantidad.setBounds(441, 104, 38, 22);
					}
					{
						jBtoRegistrar = new JButton();
						jPanelPlantilla.add(jBtoRegistrar);
						jBtoRegistrar.setText("Registrar");
						jBtoRegistrar.setBounds(31, 346, 189, 22);
						jBtoRegistrar.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoAgregarP = new JButton();
						jPanelPlantilla.add(jBtoAgregarP);
						jBtoAgregarP.setText("Agregar Ingrediente");
						jBtoAgregarP.setBounds(34, 291, 220, 22);
						jBtoAgregarP.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						jBtoQuitarP = new JButton();
						jPanelPlantilla.add(jBtoQuitarP);
						jBtoQuitarP.setText("Quitar Ingrediente");
						jBtoQuitarP.setBounds(305, 291, 208, 22);
						jBtoQuitarP.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
					{
						JBtoPlantillaBuscar = new JButton();
						jPanelPlantilla.add(JBtoPlantillaBuscar);
						JBtoPlantillaBuscar.setText("Buscar");
						JBtoPlantillaBuscar.setBounds(390, 39, 108, 22);
						JBtoPlantillaBuscar.setFont(new java.awt.Font("Comic Sans MS",3,14));
					}
				}
			}
			this.setSize(757, 481);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public JPanel getjPanelPlantilla() {
		return jPanelPlantilla;
	}

	public JButton getjBtoAceptar() {
		return jBtoAceptar;
	}

	public JButton getjBtoQuitarP() {
		return jBtoQuitarP;
	}

	public JButton getjBtoAgregarP() {
		return jBtoAgregarP;
	}

	public JComboBox getjCmbIngrediente() {
		return jCmbIngrediente;
	}

	public JScrollPane getjSpPlantilla() {
		return jSpPlantilla;
	}

	public JTable getjTableIngrediente() {
		return jTableIngrediente;
	}

	public JButton getjBtoRegistrar() {
		return jBtoRegistrar;
	}

	public JTextField getjTxtCantidad() {
		return jTxtCantidad;
	}

	public JLabel getjLblCantidad() {
		return jLblCantidad;
	}

	public JButton getjBtoSalir() {
		return jBtoSalir;
	}

	public JLabel getjLblListadoIngredientes() {
		return jLblListadoIngredientes;
	}

	public JLabel getjLblIngrediente() {
		return jLblIngrediente;
	}

	public JTextField getjTxtCodigoProducto() {
		return jTxtCodigoProducto;
	}

	public JLabel getjLblCodigoProducto() {
		return jLblCodigoProducto;
	}

	public JButton getJBtoPlantillaBuscar() {
		return JBtoPlantillaBuscar;
	}

}
